package unittest;

import tester.SingleCaseTester;
import tester.TolerantComparator;
import tester.InternalErrorException;

import java.io.IOException;

import junit.framework.TestCase;

/**
 * Created by IntelliJ IDEA.
 * User: aleck
 * Date: 2007-9-19
 * Time: 21:51:00
 * To change this template use File | Settings | File Templates.
 */
public class SingleCaseTesterTest extends TestCase {
  public void testAdd0() throws IOException {
    SingleCaseTester single = new SingleCaseTester(null, null,
        "e:\\program\\java\\tester.Tester\\program\\alex\\add\\add.exe",
        "e:\\program\\java\\tester.Tester\\work",
        "e:\\program\\java\\tester.Tester\\data\\add\\add0.in",
        "e:\\program\\java\\tester.Tester\\data\\add\\add0.out",
        10000, new TolerantComparator()
    );
    try {
      System.out.println(single.runTest());
    } catch (InternalErrorException e) {
      e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
    }
  }

  public void testAdd1() throws IOException {
    SingleCaseTester single = new SingleCaseTester(null, null,
        "e:\\program\\java\\tester.Tester\\program\\alex\\add\\add.exe",
        "e:\\program\\java\\tester.Tester\\work",
        "e:\\program\\java\\tester.Tester\\data\\add\\add1.in",
        "e:\\program\\java\\tester.Tester\\data\\add\\add1.out",
        10000, new TolerantComparator()
    );
    try {
      System.out.println(single.runTest());
    } catch (InternalErrorException e) {
      e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
    }
  }

  public void testAdd2() throws IOException {
    SingleCaseTester single = new SingleCaseTester(null, null,
        "e:\\program\\java\\tester.Tester\\program\\alex\\add\\add.exe",
        "e:\\program\\java\\tester.Tester\\work",
        "e:\\program\\java\\tester.Tester\\data\\add\\add2.in",
        "e:\\program\\java\\tester.Tester\\data\\add\\add2.out",
        10000, new TolerantComparator()
    );
    try {
      System.out.println(single.runTest());
    } catch (InternalErrorException e) {
      e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
    }
  }
}
